package com.fujica.invoicing.mapper;

import com.fujica.invoicing.entity.TInventory;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Interface IInventoryMapper
 * @Description TODO
 * @Author admin
 * @Date 2020/8/11 13:44
 * @Version 1.0
 **/
public interface IInventoryMapper extends Mapper<TInventory> {

    // 修改商品库存
    int updateInventory(Map map);

    // 更新商品库存
    int updateByInventory(TInventory inventory);

    // 查询单个
    TInventory queryById(Map map);

    // 条件查询
    List<TInventory> list(Map map);
}
